﻿@if (ViewBag.Layout.BreadCrumb.Count > 1)
{
    var i = 0;
    var count = ViewBag.Layout.BreadCrumb.Count;
    <div id="breadcrumb">
        <ul>
            @foreach (var n in ViewBag.Layout.BreadCrumb)
            {
                i++;
                <li><a href="@n.Url">@n.Title</a></li>
                if (i != count)
                {
                    <li>></li>
                }
            }
        </ul>
    </div>
}